import Vue from 'vue';
import App from './App.vue';
//引入VueRouter
import VueRouter from 'vue-router';
import Vuex from 'vuex'
//引入路由器
import router from './router/index';
import pubsub from 'pubsub-js'
import ElementUI from 'element-ui';
// 引入全部minit组件
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css'
import store from './store';
import 'element-ui/lib/theme-chalk/index.css';
import ref from 'vue-ref'
Vue.use(ref);
Vue.use(Vuex);
//引入vant
import '@/store/vant'
Vue.config.productionTip = false;
//应用插件
Vue.use(VueRouter);
Vue.use(ElementUI);
Vue.use(pubsub);
Vue.use(MintUI);

new Vue({
  render: h => h(App),
  // 使用路由
  router,
  store,
// 安装全局事件总线
beforeCreate(){
  Vue.prototype.$bus = this ;
  }
}).$mount('#app')
